//
//  LXBCustomRollingCell.m
//  XBRollingView_Example
//
//  Created by Apple on 2021/6/21.
//  Copyright © 2021 liuboliu. All rights reserved.
//

#import "LXBCustomRollingCell.h"

@interface LXBCustomRollingCell ()

@property (nonatomic, strong) UILabel *titleLabel;

@end

@implementation LXBCustomRollingCell

- (void)setUpUI
{
    [self addSubview:self.titleLabel];
   // self.backgroundColor = [UIColor cyanColor];
}

- (void)updateWithRow:(NSInteger)row
{
    self.titleLabel.text = [NSString stringWithFormat:@"这是第%ld条",row];
}

#pragma mark - lazy load
- (UILabel *)titleLabel
{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 50)];
        _titleLabel.font = [UIFont systemFontOfSize:17];
        _titleLabel.textColor = [UIColor blueColor];
    }
    return _titleLabel;
}

@end
